glcontext: Compute matching version the simple way
authorBenjamin Otte <otte@redhat.com>
Tue, 25 Apr 2023 19:45:31 +0000 (21:45 +0200)
committerBenjamin Otte <otte@redhat.com>
Thu, 27 Apr 2023 00:13:32 +0000 (02:13 +0200)
commit5f833f1d31c7a1699a997d73c1c5be6e2ad5b08d
tree0357a2d326972e1c4e6d7363a7ebeb66773f45ec
parentb8958419e657058ac705968c5e1a733013af5dcd
glcontext: Compute matching version the simple way

Do it all in one function instead of requiring two different ones.
gdk/gdkglcontext.c
gdk/gdkglcontextprivate.h
gdk/macos/gdkmacosglcontext.c
gdk/win32/gdkglcontext-win32-wgl.c
gdk/x11/gdkglcontext-glx.c